﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using BGCOP.CAVTOP.BUSINESSLAYER;

namespace WCFLibraryNoha
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "NoHaVerifyCodeBar" in both code and config file together.
    public class NoHaVerifyCodeBar : INoHaVerifyCodeBar
    {
        public string DoWork()
        {
            return "Funciona!";
        }

        public MessageDTO VerificaEntradaCodigoBarras(string codigoBarrasVehiculo)
        {
           Vtarjetas vt = new Vtarjetas();
            
            return vt.verificaParqueoEntrada(codigoBarrasVehiculo);
        }
        public MessageDTO VerificaEntradaCodigoBarras1(string codigoBarrasVehiculo, string RFID)
        {
            Vtarjetas vt = new Vtarjetas();
            return vt.verificaParqueoEntrada(RFID, codigoBarrasVehiculo);
        }
        public MessageDTO VerificaSalidaCodigoBarrasRFID(string codigoBarrasVehiculo, string RFID)
        {
            Vtarjetas vt = new Vtarjetas();
            
            return vt.verificaParqueoSalida(RFID,codigoBarrasVehiculo);
        }
        public MessageDTO VerificaSalidaCodigoBarrasRFID1(string codigoBarrasVehiculo)
        {
            Vtarjetas vt = new Vtarjetas();

            return vt.verificaParqueoSalida(codigoBarrasVehiculo);
        }
        public bool activaBarreraHandHeldMC75(string entrada)
        {
            
            TareasInner tareaIn = new TareasInner();
            tareaIn.AgregarTarea(1, "OpenS",entrada);
            return true;
        }
    }
}
